<%@ page language="java" contentType="text/html; utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="css/general.css" type="text/css">
<title>L33T - Digital Books</title>

</head>
<body>
	<div class="div_header">	
	
		<br> <br> <label style="padding-left: 15px;">Digital
			Books</label> <br> <br>
	</div>
	<div class="div_line"></div>
	<div class="divDetailContainer">
		<div class="divDetailContainerLeft">
			<div>
				<div class="divBookDetail text1">${book.title}</div>
				<div class="divBookDetail text2">by ${book.author}</div>
			</div>
			<div id="flash_notice1" class="message">
				<p>Detail Book</p>
			</div>
			<div class="divBookDetail text3">${book.description}</div>
		
			<div class="divBookDetail">
				<input type="button" class="" value="Add To Cart"
					onclick="javascript:addToCart();" />
			</div>
				
			<div id="flash_notice1" class="message">
				<p>About this Book</p>
			</div>
			
			<div class="divBookDetail text5">
			<table>
				<tr>
					<td>
						Category: ${book.category}						
					</td>
				</tr>
				<tr>
					<td>
						Year: ${book.year}						
					</td>
				</tr>
				<tr>
					<td>
						Number Of Pages: ${book.pages}						
					</td>
				</tr>
				<tr>
					<td>
						Price: USD ${book.price}						
					</td>
				</tr>
			</table>				
			</div>

		</div>

		<div class="divDetailContainerRight">
			<img style='max-width:400px;max-height:400px;' src="${book.imageUrl}" id="imgBook" />
		</div>
		<div class="clearer"></div>

	</div>

	<br>
	<br>
	<div class="back">
		<a href="main_view.htm"><img alt="" src="img/back.png" width="24"
			height="24" border="0"> </a>
	</div>

	<script type="text/javascript">
		function addToCart() {
			window.location.href = "addbook.htm?isbn=${book.isbn}";
		}
	</script>
</body>
</html>